<?php
// +----------------------------------------------------------------------
// | webhooks
// +----------------------------------------------------------------------
// | Author: King east <1207877378@qq.com>
// +----------------------------------------------------------------------

function is_options()
{
    return $_SERVER['REQUEST_METHOD'] === 'OPTIONS';
}

function is_ajax()	{
    return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtoupper($_SERVER['HTTP_X_REQUESTED_WITH'])=='XMLHTTPREQUEST';
}


function domain()
{
    return $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'];
}


function array_multiple_merge($oldArray, $newArray)
{
    foreach ($oldArray as $key=>$value) {

    }
}